package com.baiyu.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;

public enum FormatType {
    @JsonProperty("image/jpeg")
    IMAGE_JPEG("image/jpeg"),
    @JsonProperty("image/png")
    IMAGE_PNG("image/png"),
    @JsonProperty("image/gif")
    IMAGE_GIF("image/gif"),
    @JsonProperty("audio/wav")
    AUDIO_WAV("audio/wav"),
    @JsonProperty("audio/mp3")
    AUDIO_MP3("audio/mp3"),
    @JsonProperty("audio/mpeg")
    AUDIO_MPEG("audio/mpeg"),
    @JsonProperty("video/mpeg")
    VIDEO_MPEG("video/mpeg"),
    @JsonProperty("video/mpeg")
    VIDEO_MP4("video/mp4"),
    @JsonProperty("text/plain")
    TEXT_PLAIN("text/plain");

    private final String value;

    FormatType(String value) {
        this.value = value;
    }

    @JsonValue
    public String getValue() {
        return value;
    }

}